﻿using SD.Infrastructure.DTOBase;
using System;
using System.Runtime.Serialization;

namespace SD.ContentSystem.IAppService.DTOs.Outputs
{
    /// <summary>
    /// 文章数据传输对象
    /// </summary>
    [DataContract(Namespace = "http://SD.CMS.IAppService.DTOs.Outputs")]
    public class ArticleInfo : BaseDTO
    {
        #region 栏目编号 —— string ChannelNo
        /// <summary>
        /// 栏目编号
        /// </summary>
        [DataMember]
        public string ChannelNo { get; set; }
        #endregion

        #region 副标题 —— string SubTitle
        /// <summary>
        /// 副标题
        /// </summary>
        [DataMember]
        public string SubTitle { get; set; }
        #endregion

        #region 作者 —— string Author
        /// <summary>
        /// 作者
        /// </summary>
        [DataMember]
        public string Author { get; set; }
        #endregion

        #region 来源 —— string Source
        /// <summary>
        /// 来源
        /// </summary>
        [DataMember]
        public string Source { get; set; }
        #endregion

        #region 内容 —— string Content
        /// <summary>
        /// 内容
        /// </summary>
        [DataMember]
        public string Content { get; set; }
        #endregion

        #region 链接地址 —— string Url
        /// <summary>
        /// 链接地址
        /// </summary>
        [DataMember]
        public string Url { get; set; }
        #endregion

        #region 图片路径 —— string ImagePath
        /// <summary>
        /// 图片路径
        /// </summary>
        [DataMember]
        public string ImagePath { get; set; }
        #endregion

        #region 缩略图路径 —— string ThumbPath
        /// <summary>
        /// 缩略图路径
        /// </summary>
        [DataMember]
        public string ThumbPath { get; set; }
        #endregion

        #region 附件路径 —— string AttachmentPath
        /// <summary>
        /// 附件路径
        /// </summary>
        [DataMember]
        public string AttachmentPath { get; set; }
        #endregion

        #region 上一篇 —— string PrevPage
        /// <summary>
        /// 上一篇
        /// </summary>
        [DataMember]
        public string PrevPage { get; set; }
        #endregion

        #region 下一篇 —— string NextPage
        /// <summary>
        /// 下一篇
        /// </summary>
        [DataMember]
        public string NextPage { get; set; }
        #endregion

        #region 保存路径 —— string StoragePath
        /// <summary>
        /// 保存路径
        /// </summary>
        [DataMember]
        public string StoragePath { get; set; }
        #endregion

        #region 文件名 —— string FileName
        /// <summary>
        /// 文件名
        /// </summary>
        [DataMember]
        public string FileName { get; set; }
        #endregion

        #region 文章排序 —— int Sort
        /// <summary>
        /// 文章排序
        /// </summary>
        [DataMember]
        public int Sort { get; set; }
        #endregion

        #region 是否置顶 —— bool IsTop
        /// <summary>
        /// 是否置顶
        /// </summary>
        [DataMember]
        public bool IsTop { get; set; }
        #endregion

        #region 是否已发布 —— bool Published
        /// <summary>
        /// 是否已发布
        /// </summary>
        [DataMember]
        public bool Published { get; set; }
        #endregion

        #region 发布时间 —— DateTime? PublishedTime
        /// <summary>
        /// 发布时间
        /// </summary>
        [DataMember]
        public DateTime? PublishedTime { get; set; }
        #endregion

        #region 访问量 —— long VisitCount
        /// <summary>
        /// 访问量
        /// </summary>
        [DataMember]
        public long VisitCount { get; set; }
        #endregion

        #region 操作人账号 —— string OperatorAccount
        /// <summary>
        /// 操作人账号
        /// </summary>
        [DataMember]
        public string OperatorAccount { get; set; }
        #endregion


        //导航属性

        #region 导航属性 - 栏目 —— ChannelInfo ChannelInfo
        /// <summary>
        /// 导航属性 - 栏目
        /// </summary>
        [DataMember]
        public ChannelInfo ChannelInfo { get; set; }
        #endregion
    }
}
